<?php

class User_Form_ForgetPassword extends Custom_Form
{

    public function init()
    {
		$translate = Zend_Registry::get('translate');
		$this->setTranslator($translate);

        $this->setName("forget_password");
        $this->setMethod('post');

        $this->addElement('text', 'email', array(
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('StringLength', false, array(0, 75)),
            ),
            'required'   => true,
            'label'      => __('Email').':',
        ));

        $this->addElement('submit', 'forget', array(
            'required' => false,
            'ignore'   => true,
            'label'    => __('Send'),
        ));

		$this->forget->removeDecorator('label');
		$this->email->addErrorMessage('ERR_LOGIN_EMAIL_REQUIRED');
    }
}